/*
 * read.h
 *
 * Asif Shahidullah
 * ECE 275 A.1
 *
 * Function prototypes and struct declarations
 */

#ifndef READ_H__
#define READ_H__

#include <stdio.h>

/* Stores file handlers */
typedef struct {
  FILE *input_file;
  FILE *output_file;
} files_t;

/* Opens files, and return any associated errors */
int init_files (files_t*, char*, char*);

/* Removes additional whitespaces; terminates upon EOF */
int splice (files_t*);

/* Close files */
void close_files (files_t*);

#endif
